<template>
  <span>
    <el-link type="success" @click="downloadTask(data.fileUrl)">下载</el-link>
  </span>
</template>
<script>
  import * as constant from "@/store/yg/common/constant";
  export default {
    props: ["data"],
    data(){
      return {}
    },
    methods: {
      downloadTask(fileUrl){
        var path = (path = constant.FILE_SERVER + fileUrl);
        location.href = constant.API_SERVER + "/open/downloadFileByHttp?fileName=&path=" + path;
      }
    }
  }
</script>
<style scoped>
  .el-table{
    font-size: 12px;
  }
</style>
